package com.uit.gis.ui;

import java.text.ParseException;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

///import com.alee.laf.WebLookAndFeel;
import com.uit.gis.controller.MainController;

import de.javasoft.plaf.synthetica.SyntheticaAluOxideLookAndFeel;

public class Main {

	public static void main(String[] args) {
		setLookAndFeel(); 
		final MainController mainController = new MainController(); 
		SwingUtilities.invokeLater(new Runnable() {
		      public void run() {
		    	  mainController.mainFrame.setVisible(true); 
		      }
		 }); 
	}

	public static void setLookAndFeel() {
		try {
			// Set System L&F
			// UIManager.setLookAndFeel(
			// UIManager.getSystemLookAndFeelClassName());
       //  UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
			UIManager.setLookAndFeel(new SyntheticaAluOxideLookAndFeel());
		//	UIManager.setLookAndFeel(WebLookAndFeel.class.getCanonicalName());
			// UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
		} catch (UnsupportedLookAndFeelException e) {
			// handle exception
		}
//		catch (ClassNotFoundException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (InstantiationException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} catch (IllegalAccessException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		} 
		catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
